Optimal. Leaf size=39 \[ -\frac {1}{2} \text {Li}_2\left (\frac {a}{b x^2}+1\right )-\frac {1}{2} \log \left (\frac {a}{x^2}+b\right ) \log \left (-\frac {a}{b x^2}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.05, antiderivative size = 39, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 4, integrand size = 16, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.250, Rules used = {2461, 2454, 2394, 2315} \[ -\frac {1}{2} \text {PolyLog}\left (2,\frac {a}{b x^2}+1\right )-\frac {1}{2} \log \left (\frac {a}{x^2}+b\right ) \log \left (-\frac {a}{b x^2}\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2315
Rule 2394
Rule 2454
Rule 2461
Rubi steps
\begin {align*} \int \frac {\log \left (\frac {a+b x^2}{x^2}\right )}{x} \, dx &=\int \frac {\log \left (b+\frac {a}{x^2}\right )}{x} \, dx\\ &=-\left (\frac {1}{2} \operatorname {Subst}\left (\int \frac {\log (b+a x)}{x} \, dx,x,\frac {1}{x^2}\right )\right )\\ &=-\frac {1}{2} \log \left (b+\frac {a}{x^2}\right ) \log \left (-\frac {a}{b x^2}\right )+\frac {1}{2} a \operatorname {Subst}\left (\int \frac {\log \left (-\frac {a x}{b}\right )}{b+a x} \, dx,x,\frac {1}{x^2}\right )\\ &=-\frac {1}{2} \log \left (b+\frac {a}{x^2}\right ) \log \left (-\frac {a}{b x^2}\right )-\frac {1}{2} \text {Li}_2\left (1+\frac {a}{b x^2}\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.00, size = 40, normalized size = 1.03 \[ -\frac {1}{2} \text {Li}_2\left (\frac {\frac {a}{x^2}+b}{b}\right )-\frac {1}{2} \log \left (\frac {a}{x^2}+b\right ) \log \left (-\frac {a}{b x^2}\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [F] time = 0.41, size = 0, normalized size = 0.00 \[ {\rm integral}\left (\frac {\log \left (\frac {b x^{2} + a}{x^{2}}\right )}{x}, x\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {\log \left (\frac {b x^{2} + a}{x^{2}}\right )}{x}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [B] time = 0.09, size = 108, normalized size = 2.77 \[ \ln \left (\frac {1}{x}\right ) \ln \left (\frac {-\frac {a}{x}+\sqrt {-a b}}{\sqrt {-a b}}\right )+\ln \left (\frac {1}{x}\right ) \ln \left (\frac {\frac {a}{x}+\sqrt {-a b}}{\sqrt {-a b}}\right )-\ln \left (\frac {1}{x}\right ) \ln \left (b +\frac {a}{x^{2}}\right )+\dilog \left (\frac {-\frac {a}{x}+\sqrt {-a b}}{\sqrt {-a b}}\right )+\dilog \left (\frac {\frac {a}{x}+\sqrt {-a b}}{\sqrt {-a b}}\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [B] time = 0.47, size = 77, normalized size = 1.97 \[ -{\left (\log \left (b x^{2} + a\right ) - 2 \, \log \relax (x)\right )} \log \relax (x) + \log \left (b x^{2} + a\right ) \log \relax (x) - \log \left (\frac {b x^{2}}{a} + 1\right ) \log \relax (x) - \log \relax (x)^{2} + \log \relax (x) \log \left (\frac {b x^{2} + a}{x^{2}}\right ) - \frac {1}{2} \, {\rm Li}_2\left (-\frac {b x^{2}}{a}\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.44, size = 33, normalized size = 0.85 \[ -\frac {{\mathrm {Li}}_{\mathrm {2}}\left (-\frac {a}{b\,x^2}\right )}{2}-\frac {\ln \left (b+\frac {a}{x^2}\right )\,\ln \left (-\frac {a}{b\,x^2}\right )}{2} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {\log {\left (\frac {a}{x^{2}} + b \right )}}{x}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________